package com.kldy8.kldyw.system;

/**
 * Created by Administrator on 2016/9/18.
 */
public class ErrorCode
{
    private final static String  Error0 = "服务器异常";
    private final static String  Error1 = "参数错误";
    private final static String  Error2 = "用户不存在";
    private final static String  Error3 = "密码错误";
    private final static String  Error4 = "用户未登录";
    private final static String  Error5 = "登录超时";
    private final static String  Error6 = "验证码错误";
    private final static String  Error7 = "用户名已存在";
    private final static String  Error8 = "用户类型非法";
    private final static String  Error9 = "电话号码格式错误";
    private final static String  Error10 = "电话号码已有绑定的账号";
    private final static String  Error11 = "密码格式不合法";
    private final static String  Error12 = "请求的资源为空";
    private final static String  Error13 = "资讯/新闻不存在";
    private final static String  Error14 = "评论内容不能为空";
    private final static String  Error15 = "请求的资源为空";
    private final static String  Error16 = "请求的资源为空";


    private final static String  ErrorCode0 =  "-1";
    private final static String  ErrorCode1 =  "10001";
    private final static String  ErrorCode2 =  "10002";
    private final static String  ErrorCode3 =  "10003";
    private final static String  ErrorCode4 =  "10004";
    private final static String  ErrorCode5 =  "10005";
    private final static String  ErrorCode6 =  "10006";
    private final static String  ErrorCode7 =  "10007";
    private final static String  ErrorCode8 =  "10008";
    private final static String  ErrorCode9 =  "10009";
    private final static String  ErrorCode10 = "10010";
    private final static String  ErrorCode11 = "10011";
    private final static String  ErrorCode12 = "11001";
    private final static String  ErrorCode13 = "11002";
    private final static String  ErrorCode14 = "11003";
    private final static String  ErrorCode15 = "12001";
    private final static String  ErrorCode16 = "13001";

    public static String  errorResolve(String errorCode)
    {
        if (errorCode == null)
        {
            return "";
        }
        else if (errorCode.equals(ErrorCode0))
        {
            return  Error0;
        }
        else if (errorCode.equals(ErrorCode1))
        {
            return  Error1;
        }
        else if (errorCode.equals(ErrorCode2))
        {
            return  Error2;
        }
        else if (errorCode.equals(ErrorCode3))
        {
            return  Error3;
        }
        else if (errorCode.equals(ErrorCode4))
        {
            return  Error4;
        }
        else if (errorCode.equals(ErrorCode5))
        {
            return  Error5;
        }
        else if (errorCode.equals(ErrorCode6))
        {
            return  Error6;
        }
        else if (errorCode.equals(ErrorCode7))
        {
            return  Error7;
        }
        else if (errorCode.equals(ErrorCode8))
        {
            return  Error8;
        }
        else if (errorCode.equals(ErrorCode9))
        {
            return  Error9;
        }
        else if (errorCode.equals(ErrorCode10))
        {
            return  Error10;
        }
        else if (errorCode.equals(ErrorCode11))
        {
            return  Error11;
        }
        else if (errorCode.equals(ErrorCode12))
        {
            return  Error12;
        }
        else if (errorCode.equals(ErrorCode13))
        {
            return  Error13;
        }
        else if (errorCode.equals(ErrorCode14))
        {
            return  Error14;
        }
        else if (errorCode.equals(ErrorCode15))
        {
            return  Error15;
        }
        else if (errorCode.equals(ErrorCode16))
        {
            return  Error16;
        }
        return "";
    }

}
